package com.ruoyi.teaching.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.teaching.domain.PlatformTTaskQuestion;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 王旭
 * @since 2024-06-18
 */
@Mapper
public interface PlatformTTaskQuestionMapper extends BaseMapper<PlatformTTaskQuestion> {

    void insertToTaskQuestion(PlatformTTaskQuestion platformTTaskQuestion);

    void deleteByTaskId(Long id);

    List<PlatformTTaskQuestion> selectByQuestionId(int id);

    List<PlatformTTaskQuestion> selectByTaskId(Integer taskId);

    boolean existsTaskQuestion(@Param("taskId") Integer taskId, @Param("questionId") Integer questionId);
}
